package com.enumeration;
//枚举的复杂类型
public enum Seasons {
    //枚举类的第一行必须是枚举值，如果没有无参构造这里会报错
    SPRING("春天","暖和"),
    SUMMER("夏天","炎热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","寒冷");
    private String seasonsName;
    private String seasonsDesc;

    //枚举的无参构造
    private Seasons() {
    }

    //这里是枚举的全参构造方法，枚举的构造方法必须要加private，只不过默认是加private
    private Seasons(String seasonsName, String seasonsDesc) {
        this.seasonsName = seasonsName;
        this.seasonsDesc = seasonsDesc;
    }

    public String getSeasonsName() {
        return seasonsName;
    }

    public void setSeasonsName(String seasonsName) {
        this.seasonsName = seasonsName;
    }

    public String getSeasonsDesc() {
        return seasonsDesc;
    }

    public void setSeasonsDesc(String seasonsDesc) {
        this.seasonsDesc = seasonsDesc;
    }
}
